package ms.unicorn.modellanguage;

import ms.unicorn.diagram.providers.UnicornElementTypes;

public class DefaultLanguage extends ModelLanguage {
	
	public DefaultLanguage() {
		this.setId("default");
		this.setName("Default");
		
		addElement(createEntityElement());
		addElement(createRelationElement());
	}
	
	@Override
	public void registerElementTypes() {
		// do nothing, since we don't need to register existing types
	}
	
	private LanguageElement createEntityElement() {
		LanguageElement e = new LanguageEntity(this);
		e.setId("default.Entity");
		e.setElementType(UnicornElementTypes.Entity_2001);
		return e;
	}
	
	private LanguageElement createRelationElement() {
		LanguageElement e = new LanguageRelation(this);
		e.setId("default.Relation");
		e.setElementType(UnicornElementTypes.Relation_4001);
		return e;
	}

}
